package com.dingyh.shopwebbackground.service.impl;

import com.dingyh.shopwebbackground.entity.Commodity;
import com.dingyh.shopwebbackground.entity.CommodityType;
import com.dingyh.shopwebbackground.mapper.CommodityTypeMapper;
import com.dingyh.shopwebbackground.service.CommodityTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dingyh.shopwebbackground.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dingyuhan
 * @since 2023-03-03
 */
@Service
public class CommodityTypeServiceImpl extends ServiceImpl<CommodityTypeMapper, CommodityType> implements CommodityTypeService {

    @Autowired
    CommodityTypeMapper commodityTypeMapper;

    @Override
    public CommodityType selectByGoodsId(String goodsId) {
        return commodityTypeMapper.selectByGoodsId(goodsId);
    }



}
